﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SeDuce.IDAL;

namespace SeDuce.BLL
{
    public class ColorBLL
    {
        private static readonly IColorDAL dal = SeDuce.DALFactory.DataAccess.CreateColorDAL();

        public DataTable GetColor()
        {
            return dal.GetColor();
        }

        public bool UpdateColor(SeDuce.Model.Color color)
        {
            return dal.UpdateColor(color);
        }

        public bool UpdateColors(List<Model.Color> colors)
        {
            return dal.UpdateColors(colors);
        }

        public bool InsertColor(SeDuce.Model.Color color)
        {
            return dal.InsertColor(color);
        }

        public bool DeleteColor(int colorID)
        {
            return dal.DeleteColor(colorID);
        }
    }
}
